/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TwatClasses;

import Entities.Messages;
import java.util.Comparator;

/**
 *
 * @author xespin
 */
public class MessageComparator implements Comparator<Messages>{
    @Override
    public int compare(Messages o1, Messages o2) {
        return o1.getDate().compareTo(o2.getDate());

    }
}
